package com.planegame.Obj;

import com.planegame.GameWin;

import java.awt.*;

//自身飞机发射的子弹
public class ShellObj extends  GameObject{
    @Override
    public void setImg(Image img) {
        super.setImg(img);
    }

    public ShellObj() {
        super();
    }

    public ShellObj(Image img, int x, int y, double speed) {
        super(img, x, y, speed);
    }

    public ShellObj(int x, int y, int width, int hight) {
        super(x, y, width, hight);
    }

    public ShellObj(Image img, int x, int y, int width, int hight, double speed, GameWin frame) {
        super(img, x, y, width, hight, speed, frame);
    }

    @Override
    public void paintSelf(Graphics gImage) {
        super.paintSelf(gImage);
        y-=speed;
    }

    @Override
    public Rectangle getRec() {
        return super.getRec();
    }
}
